
package com.contractmodule.bean;

import com.flowmodule.bean.TbFlowProcess;
import com.flowmodule.dao.TbFlowProcessDAO;

public class TbProjectState implements java.io.Serializable {

    private int projectStateId;

    private int isFinish;

    private int initialTest;

    private String completionData;

    private int isPaperReview;

    private int isElectronicProcesses;

    private int flowProcessId;
    private TbFlowProcess tbflowProcess;

    public TbFlowProcess getTbflowProcess() {
		return tbflowProcess;
	}

	public void setTbflowProcess(TbFlowProcess tbflowProcess) {
		this.tbflowProcess = tbflowProcess;
	}
	private int isInvoice;

    private String invoiceTime;

    private int isBackSection;

    private int userId;

    private String createTime;

    public int getProjectStateId(){
        return projectStateId;
    }

    public void setProjectStateId(int projectStateId){
        this.projectStateId = projectStateId;
    }

    public int getIsFinish(){
        return isFinish;
    }

    public void setIsFinish(int isFinish){
        this.isFinish = isFinish;
    }

    public int getInitialTest(){
        return initialTest;
    }

    public void setInitialTest(int initialTest){
        this.initialTest = initialTest;
    }

    public String getCompletionData(){
        return completionData;
    }

    public void setCompletionData(String completionData){
        this.completionData = completionData;
    }

    public int getIsPaperReview(){
        return isPaperReview;
    }

    public void setIsPaperReview(int isPaperReview){
        this.isPaperReview = isPaperReview;
    }

    public int getIsElectronicProcesses(){
        return isElectronicProcesses;
    }

    public void setIsElectronicProcesses(int isElectronicProcesses){
        this.isElectronicProcesses = isElectronicProcesses;
    }

    public int getFlowProcessId(){
        return flowProcessId;
    }

    public void setFlowProcessId(int flowProcessId){
        this.flowProcessId = flowProcessId;
        this.tbflowProcess=new TbFlowProcessDAO().getTbFlowProcessByFlowProcessId(flowProcessId);
    }

    public int getIsInvoice(){
        return isInvoice;
    }

    public void setIsInvoice(int isInvoice){
        this.isInvoice = isInvoice;
    }

    public String getInvoiceTime(){
        return invoiceTime;
    }

    public void setInvoiceTime(String invoiceTime){
        this.invoiceTime = invoiceTime;
    }

    public int getIsBackSection(){
        return isBackSection;
    }

    public void setIsBackSection(int isBackSection){
        this.isBackSection = isBackSection;
    }

    public int getUserId(){
        return userId;
    }

    public void setUserId(int userId){
        this.userId = userId;
    }

    public String getCreateTime(){
        return createTime;
    }

    public void setCreateTime(String createTime){
        this.createTime = createTime;
    }


    public TbProjectState(){
    }
    public TbProjectState(int isFinish,int initialTest,String completionData,int isPaperReview,int isElectronicProcesses,int flowProcessId,int isInvoice,String invoiceTime,int isBackSection,int userId){
        this.isFinish = isFinish;
        this.initialTest = initialTest;
        this.completionData = completionData;
        this.isPaperReview = isPaperReview;
        this.isElectronicProcesses = isElectronicProcesses;
        this.flowProcessId = flowProcessId;
        this.isInvoice = isInvoice;
        this.invoiceTime = invoiceTime;
        this.isBackSection = isBackSection;
        this.userId = userId;
    }
    public TbProjectState(int projectStateId,int isFinish,int initialTest,String completionData,int isPaperReview,int isElectronicProcesses,int flowProcessId,int isInvoice,String invoiceTime,int isBackSection,int userId){
        this.projectStateId = projectStateId;
        this.isFinish = isFinish;
        this.initialTest = initialTest;
        this.completionData = completionData;
        this.isPaperReview = isPaperReview;
        this.isElectronicProcesses = isElectronicProcesses;
        this.flowProcessId = flowProcessId;
        this.isInvoice = isInvoice;
        this.invoiceTime = invoiceTime;
        this.isBackSection = isBackSection;
        this.userId = userId;
    }
}

